package conf

import (
	"fmt"
	"github.com/spf13/viper"
)

type AppConf struct {
	Mysql Mysql
}
type Mysql struct {
	User     string
	Password string
	Host     string
	Port     string
	Database string
}

var AppConfig AppConf

func AppConfigGet() {
	viper.SetConfigFile("./conf/conf.yaml")
	viper.ReadInConfig()
	viper.Unmarshal(&AppConfig)
	fmt.Println(AppConfig)
}
